$(function() {
	$("#save").click(function() {
		var form = $("form").serialize();
		var select = $("#select").val();
		$.ajax({
			"url" : "./goods/update",
			"type" : "get",
			"data" : form + "&select=" + select,
			"dataType" : "text",
			"success" : function(data) {
				alert("data:"+data);
				if (data == "true") {
					alert("修改成功");
					location.href="localhost:8080/GoodsOrderSys";
				} else {
					alert("修改失败");
				}
			}
		});
	});
});
